home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2004 #9 / Amiga Plus CD - 2004 - No. 09.iso / amigaplus / tools / dev_libs / feelin040718 / sources / bar / project.c < prev    next >
C/C++ Source or Header  |  2004-08-03  |  1KB  |  61 lines

  1. ;/*
  2.    F_Create.rexx LIB Feelin:LIBS/Feelin/Bar.fc 2 0
  3.    Quit
  4. */
  5.  
  6. #include "Private.h"
  7.  
  8. struct FeelinBase                  *FeelinBase;
  9.  
  10. ///METHODS
  11. F_METHOD(void,Bar_New);
  12. F_METHOD(void,Bar_Get);
  13. F_METHOD(void,Bar_Setup);
  14. F_METHOD(void,Bar_Cleanup);
  15. F_METHOD(void,Bar_AskMinMax);
  16. F_METHOD(void,Bar_Draw);
  17. //+
  18.  
  19. ///QUERY
  20. F_QUERY()
  21. {
  22.    FeelinBase = Feelin;
  23.  
  24.    switch (Which)
  25.    {
  26.       case FV_Query_ClassTags:
  27.       {
  28.          static struct FeelinDynamicEntry Attributes[] =
  29.          {
  30.             "Title",0, "PreParse",0, NULL
  31.          };
  32.  
  33.          static struct FeelinMethodEntry Handlers[] =
  34.          {
  35.             (FMethod) Bar_New,         NULL, FM_New,
  36.             (FMethod) Bar_Get,         NULL, FM_Get,
  37.             (FMethod) Bar_Setup,       NULL, FM_Setup,
  38.             (FMethod) Bar_Cleanup,     NULL, FM_Cleanup,
  39.             (FMethod) Bar_AskMinMax,   NULL, FM_AskMinMax,
  40.             (FMethod) Bar_Draw,        NULL, FM_Draw,
  41.              NULL
  42.          };
  43.  
  44.          static struct TagItem Tags[] =
  45.          {
  46.             FA_Class_Super,         (ULONG)  FC_Area,
  47.             FA_Class_LODSize,       (ULONG)  sizeof(struct LocalObjectData),
  48.             FA_Class_Attributes,    (ULONG)  Attributes,
  49.             FA_Class_MethodsTable,  (ULONG)  Handlers,
  50.  
  51.             TAG_DONE
  52.          };
  53.  
  54.          return Tags;
  55.       }
  56.    }
  57.    return NULL;
  58. }
  59. //+
  60.  
  61.